package com.fernfx.xingtan.my.contract;

import android.view.ViewGroup;
import android.widget.TextView;

import com.fernfx.xingtan.common.base.BaseModel;
import com.fernfx.xingtan.common.base.BasePresenter;
import com.fernfx.xingtan.common.base.BaseView;
import com.fernfx.xingtan.common.network.IRequestCallback;

import java.util.Map;

/**
 * Created by admin on 2018/8/14.
 */

public interface ShowSettingInfoContract {
    interface View extends BaseView{

        //显示二维码
        void showWoQrcode(String base64Text);
    }

    interface Presenter extends BasePresenter{
        void displayAppointView(ViewGroup showSettingInfoVp,int viewId);

        //修改昵称
        void updateNickName(Map<String,Object> requestArgsMap,String nickName);
        //修改性别
        void updateSex(Map<String, Object> requestArgsMap,final String sexText);
        //获取名片二维码
        void bussinessCard(Map<String, Object> requestArgsMap);
        //更改签名内容
        void updateAutograph(Map<String, Object> requestArgsMap,String autographText);
    }

    interface Model extends BaseModel{
        void updateNickName(Map<String,Object> requestArgsMap,IRequestCallback iRequestCallback);

        //修改性别
        void updateSex(Map<String,Object> requestArgsMap,IRequestCallback iRequestCallback);
        //获取名片二维码
        void bussinessCard(Map<String, Object> requestArgsMap,IRequestCallback iRequestCallback);
        //更改签名内容
        void updateAutograph(Map<String, Object> requestArgsMap,IRequestCallback iRequestCallback);
    }
}
